import json

from django.http import JsonResponse
from django.shortcuts import render
from django.views.generic.base import View, TemplateView

from custom import BreadcrumbMixin
from .mixin import LoginRequiredMixin


# class SystemView(LoginRequiredMixin, View):
#     """系统视图"""
#
#     def get(self, request):
#         return render(request, 'system/system_index.html')

class SystemView(LoginRequiredMixin, BreadcrumbMixin, TemplateView):
    """系统视图"""

    template_name = 'system/system_index.html'
